﻿<UserControl x:Class="StockholmsStad.Windows.UI.Modules.Maintenance.Controls.AddLanguageControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Grid>
        
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="20" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <ListBox x:Name="lbExistingLanguages" MinWidth="100" Grid.Row="0" Grid.Column="0" MinHeight="70" >
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <TextBox Text="{Binding Path=Name}" />
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>

        <Button x:Name="AddLanguageButton" Content=">>" Grid.Row="0" Grid.Column="1" Width="25" Height="25" Margin="5,0,5,0" 
                HorizontalAlignment="Center" Click="AddLanguageButton_Click" />
        
        <ListBox x:Name="lbSelectedLanguages" MinWidth="100" Grid.Row="0" Grid.Column="2" MinHeight="70" >
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <TextBox Text="{Binding Path=Name}" />
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>

    </Grid>
</UserControl>
